import tensorflow as tf
#constant(value, dtype=None, shape=None, name="Const", verify_shape=False)
c = tf.constant([1, 2, 3, 4], tf.float32)

with tf.Session() as tf:
    print(tf.run(c))